﻿using System.Security.Claims;

namespace CTP.CRM.Core.SharedModel.InternalCore.Token
{
    public class ValidatorResult
    {
        public string Message { get; private set; }

        public ClaimsPrincipal ClaimsPrincipal { get; private set; }

        public ValidatorResult(ClaimsPrincipal claimsPrincipal)
        {
            Message = ((claimsPrincipal != null) ? "验证成功" : "验证失败");
            ClaimsPrincipal = claimsPrincipal;
        }
    }
}
